import axiosInstance from "@/utils/HtppUtils";
import qs from "qs";
export default {
    //获取员工列表
    getEmployeeByPage(param){
        return axiosInstance.get('/employees/getEmployeeByPage?'+qs.stringify(param))
    },
    //添加员工
    saveEmployee(param){
        return axiosInstance.post('/employees/saveEmployee',param)
    },
    //修改员工
    updateEmployee(param){
        return axiosInstance.put('/employees/updateEmployee',param)
    },
    updateEmployeeStatus(param){
        const { id, is_del } = param;

        // 打印 id 和 status
        console.log(`id: ${id}`);
        console.log(`status: ${is_del}`);
        return axiosInstance.put('/employees/updateEmployeeStatus',param)
    }
}